import request from '@/utils/request'

export function add(token, data) {
  return request({
    url: 'user/admin_user/addUser',
    method: 'post',
    params: { token },
    data
  })
}
export function edit(token, data) {
  return request({
    url: 'user/admin_user/editUser',
    method: 'post',
    params: { token },
    data
  })
}
// 状态
export function videoSwitch(token, data) {
  return request({
    url: 'user/admin_user/changeStatus',
    method: 'post',
    params: { token },
    data
  })
}
export function del(token, data) {
  return request({
    url: 'user/admin_user/delUser',
    method: 'post',
    params: { token },
    data
  })
}
export function info(token, data) {
  return request({
    url: 'merchant/admin_user/info',
    method: 'post',
    params: { token },
    data
  })
}
export function getList(token, data) {
  return request({
    url: 'user/admin_user/get_list',
    method: 'post',
    params: { token },
    data
  })
}
export function get_role(token, data) {
  return request({
    url: 'shop_merchant_auth/admin_role/get_role',
    method: 'post',
    params: { token },
    data
  })
}
